package com.zytlifeservice.controller;

import com.zytlifeservice.service.pay.PublicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by MJS on 2017/7/13.
 */
@RestController
public class TestTokenContoller {

    @Value("${is_product_enviroment}")
    Boolean isProd;

    @Autowired
    PublicService publicService;

    @GetMapping(value = "/testToken")
    public void test() {
//        publicService.updateToken();
        if (isProd) {
            System.out.println("true");
        } else {

            System.out.println("false");
        }
    }

}
